package fr.syntheses.exercice2j2ee.ClasseAction;
//import java.sql.Connection;


/**
 * 
 */

/**
 * @author stebio
 *
 */
public class ActionClasse {
	private String login;
	private String password;
	public ActionClasse(){
		this.login="admin";
		this.password="admin";

	}
	public int compare(String log, String pwd){
		int val=0;
		//Connection cnx= (Connection)
		if(this.login.equals(log) && this.password.equals(pwd))
		{
			val=1;
		}
		else
		{
			val=2;
		}
		return val;
	}
}
